<template>
  <div class="common-layout">
    <el-container>
      <!--这里显示侧边栏内容-->
      <common-aside />
      <el-container>
        <!--这里显示头部内容-->
        <common-header />
        <common-tab />
        <el-main>
          <!-- 这里展示页面主体内容-->
          <router-view />
        </el-main>
        <!-- 这里展示页面脚本内容-->
        <el-footer>
          <common-footer />
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from "@/components/CommonAside.vue";
import CommonHeader from "@/components/CommonHeader.vue";
import CommonFooter from "@/components/CommonFooter.vue";
import CommonTab from "@/components/commonTab/CommonTab.vue";

export default {
  components: { CommonTab, CommonFooter, CommonHeader, CommonAside },
  setup() {
    return {
      CommonAside,
      CommonHeader,
      CommonFooter,
      CommonTab,
    };
  },
};
</script>

<style scoped lang="less">
.common-layout {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  & .el-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    & .el-aside {
      height: 100%;
      padding: 0;
      margin: 0;
    }
    & .el-container {
      width: 98%;
      & .el-header {
        width: 98%;
        // padding: 0;
      }
      & .el-tag {
        width: 100%;
        height: 80px;
        // padding: 0;
      }
      & .el-main {
        width: 100%;
        // padding: 0;
      }
      & .el-footer {
        width: 100%;
        // padding: 0;
        height: 10%;
      }
    }
  }
}
</style>
